package sql

import (
	"URLshortener/internal/model"
	"context"
)

type UrlDao interface {
	FindByOriginalUrl(ctx context.Context, originalUrl string) (*model.Url, bool, error)
	FindByShortCode(ctx context.Context, shortCode string) (*model.Url, error)
	SaveUrl(ctx context.Context, url *model.Url) error
	DeleteUrl(ctx context.Context, shortCode string) error
	ExistShortCode(ctx context.Context, shortCode string) (bool, error)
}
